package com.extend_.ExtendsExercise;

/**
 * @Author 小闽
 * @Date 2024/8/9 20:24
 * @PackageName: com.extend_.ExtendsExercise
 * @ClassName: B
 * @Description: B
 * @Version 1.0
 */
public class B extends A {
    // 构造器(无参)
    B(){
        this("abc");
        System.out.println("b");
    }
    // 构造器(有参)
    B(String name){
        System.out.println("b name");
    }
}
